package com.whz.hierarchy;

/**
 * @Author: sinosoft
 * @Description: 长方形
 * @Date: Create in 19:39 2021/5/10
 * @Modified By:
 */
public class Rectangle extends Figure {
    final double width;
    final double length;

    public Rectangle(double width, double length) {
        this.width = width;
        this.length = length;
    }

    @Override
    double area() {
        return width * length;
    }
}
